const p: { x: number; y: number } = { x: 0, y: 0 };

// function movePoint(point: { x: number; y: number }) {
//   point.x = 10;
//   point.y = 20;
// }

function movePoint(point: typeof p) {
  point.x = 10;
  point.y = 20;
}

console.log(typeof p.x)

movePoint(p);

console.log(p);